import TalkObject from '../lib/talkObject';
const talkObject = new TalkObject();
export default class Talk {
    /* talk类型发送消息时执行*/
    sendMessage(msg) {//msg={head:'',body:''}
        // console.log("sendMessage", msg.client.sendStatus);
        talkObject.addChat(msg.body.talk_id, msg);
    }
    /*收到服务器回执信息的处理*/
    receiptMsg() {//msg.body.data
        // console.log("收到回执消息了！", data);
        // talkObject.changeMessageStatus();
        return { code: 301, data: '没有返回消息。' }
    }
    /* */
    getMsg() {//msg={head:'',body:''}
    // data
        // talkObject.on.onNewChatAlert(data);
    }
}